﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for IPhotos
/// </summary>
public interface IPhotos
{
    /// <summary>
    /// Get list Photos by Album
    /// </summary>
    /// <param name="album">Album</param>
    /// <returns>Return list Photos</returns>
    List<Photos> GetListPhotosOfAlbum(Albums album);

    /// <summary>
    /// Get object Photos by id
    /// </summary>
    /// <param name="idPhoto">id of object Photos want to get</param>
    /// <returns>Return object Photos</returns>
    Photos GetPhotoById(int idPhoto);

    /// <summary>
    /// Get object Photos by name
    /// </summary>
    /// <param name="name">name of object Photos want to get</param>
    /// <returns>Return object Photos</returns>
    Photos GetPhotoByName(string name);

    /// <summary>
    /// Create object Photos
    /// </summary>
    /// <param name="name">Name of object Photos</param>
    /// <param name="description">Description of object Photos</param>
    /// <param name="photoLocation">Location of object Photos</param>
    /// <param name="album">Album stores object Photos</param>
    /// <returns>Return result was created</returns>
    bool CreatePhoto(string name, string description, string photoLocation, Albums album);

    /// <summary>
    /// Delete object Photos
    /// </summary>
    /// <param name="photo">Object Photos want to delete</param>
    /// <returns>Return result was deleted</returns>
    bool DeletePhoto(Photos photo);

    /// <summary>
    /// Update object Photos
    /// </summary>
    /// <param name="photo">Object Photos want to update</param>
    /// <returns>Return result was updated</returns>
    bool UpdatePhoto(Photos photo);
}